<!doctype html> 
<html> 
<head> 
    <meta charset="utf-8"> 
    <title></title>  
    <script type="text/javascript" src='angular.js'></script>
    <script type="text/javascript">
    angular.module('text',[]).controller('const1',function ($scope){
        $scope.a = 20;
    });
    angular.module('text2',[]).controller('const2',function ($scope){
       // alert(scope.a);
        $scope.b = 120;
    })

    angular.module('pop',['text','text2']).controller('const3',function ($scope){

        
    })
    
  
    </script>
</head>
<body>
<div ng-app='pop'>
    <div ng-controller='const1'>{{a}}</div>
    <div ng-controller='const2'>{{b}}</div>
    <div ng-controller='const3'>{{a*b}}</div>
</div>


</body>
</html>